package com.itheima.a05extends;

class Person{
    public void eat(){
        System.out.println("吃米饭");
    }

    public void drink(){
        System.out.println("喝开水");
    }
}

class OverseasStudent extends Person {
    @Override
    public void eat(){
        System.out.println("吃意大利面");
    }

    @Override
    public void drink(){
        System.out.println("喝凉水");
    }

    public void lunch(){
        eat();
        drink();

        this.eat();
        this.drink();

        super.eat();
        super.drink();
    }
}

public class Test{
    public static void main(String[] args) {
        OverseasStudent os = new OverseasStudent();
        os.lunch();
    }
}
